﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Lilium.Web.Mvc
{
	/// <summary>
	/// Base class for controller-bound services.
	/// </summary>
	public class ControllerService: IControllerService
	{
		public ControllerService(ControllerBase controller)
		{
			if (controller == null) throw new ArgumentNullException("controller");

			m_Controller = controller;
		}

        #region IControllerService Members

        public virtual void OnResultExecuted()
        {
        }

        #endregion
        
        #region protected ControllerBase Controller

		private readonly ControllerBase m_Controller;

		protected ControllerBase Controller
		{
			get
			{
				return m_Controller;
			}
		}

		#endregion
    }
}
